package com.newegg.app.qec.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.newegg.app.qec.R;


/**
 * Created by Allen on 2017/12/6.
 */
public class CarFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ImageView back = (ImageView) view.findViewById(R.id.img_back);
        TextView name = (TextView) view.findViewById(R.id.title_name);
        back.setVisibility(View.GONE);
        name.setText("购物车");
    }
}
